package com.sky.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author liudo
 * @version 1.0
 * @project sky-take-out
 * @date 2024/2/27 08:55:40
 */
@Slf4j
// @Component
public class DemoTask {

    @Scheduled(cron = "0/10 * * * * ?")
    public void test() {
        log.info("-----------------时候收拾收拾-----------------");
    }
}
